/**
 * 
 * If you have edited the file, please update
 * all the last-modified fields manually. Thanks!
 *
 * @last-modified by: 
 * @last-modified date: 
 * @last-modified time: 
 *
 * @author Swee Zhi
 * @date-created Sep 12, 2011    @time-created 6:57:41 PM
 *
 * @project: 
 * @module: 
 * @institution: 
 *
 */

package util.comboloader;

import util.enumhelper.SupportedLocale;
import util.enumeration.Language;

public class LocalizedSelect {

    // alphabetical order
    public static String getLocalizedSelectAsString(String locale) {
        String localizedSelect = "";
        
        // en_US ENGLISH, UNITED STATES
        if (locale.equals(SupportedLocale.getSupportedLocale(Language.ENGLISH_US))) {
//            System.out.println("1");
            localizedSelect = getSelect_EN_US();
        }
        // en_SG ENGLISH, SINGAPORE
        else
        if (locale.equals(SupportedLocale.getSupportedLocale(Language.ENGLISH_SINGAPORE))) {
//            System.out.println("2");
            localizedSelect = getSelect_EN_SG();
        }
        // ms_MY MALAY, MALAYSIA
        else
        if (locale.equals(SupportedLocale.getSupportedLocale(Language.MALAY))) {
//            System.out.println("3");
            localizedSelect = getSelect_MS_MY();
        }
        
        // zh_CN CHINESE, CHINA
        else
        if (locale.equals(SupportedLocale.getSupportedLocale(Language.CHINESE_CHINA))) {
//            System.out.println("4");
            localizedSelect = getSelect_ZH_CN();
        }
        // other language...
        else {
//            System.out.println("5");
            localizedSelect = getSelect_EN_US();
        }
        
        return localizedSelect;
    }
    
    // simplified chinese (zh_CN)
    private static String getSelect_ZH_CN() {
        return "请选择";
    }
    
    // default (en_US)
    private static String getSelect_EN_US() {
        return "PLEASE SELECT";
    }
    
    // singapore english (en_SG)
    private static String getSelect_EN_SG() {
        return "PLEASE SELECT";
    }
    
    // bahasa malaysia (ms_MY)
    private static String getSelect_MS_MY() {
        return "SILA PILIH";
    }
    
    // new language for localized language template (copy and paste to use)
//    private static String getSelect_XX_YY() {
//        return "";
//    }
}
